package com.hushao.aimi.bo;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.sql.Timestamp;

@Data
@Slf4j
public class RecommendBo {


    private Integer recommendId;

    //商品id
    private String productId;

    //推荐编号
    private String recommendCode;

    //推荐图片
    private String recommendImage;

    //推荐内容
    private String recommendTitle;

    //排序
    private Integer sortOrder;

    //状态
    private int recommendStatus;

    //创建时间
    private Timestamp createTime;

    //更新时间
    private Timestamp updateTime;

    //备注
    private String comment;

    //商品编号
    private String productCode;

    //商品名称
    private String productName;



    public RecommendBo(Object o) {
        try{
            Object[] row= (Object[]) o;
            this.recommendId = (Integer) row[0];
            this.productId = (String) row[1];
            this.recommendCode= (String) row[2];
            this.recommendImage = (String) row[3];
            this.recommendTitle = (String) row[4];
            this.sortOrder = (Integer) row[5];
            this.recommendStatus = (Integer) row[6];
            this.createTime = (Timestamp) row[7];
            this.updateTime = (Timestamp) row[8];
            this.comment= (String) row[9];
            this.productCode= (String) row[10];
            this.productName= (String) row[11];

        }catch (Exception e){log.error("转换错误");}
    }
}
